home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / SamplePart (C) / Source / SamplePartGlobals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-06  |  1.5 KB  |  78 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SamplePartGlobals.h
  3.  
  4.     Contains:    SamplePart globals
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11.  
  12. #ifndef _SAMPLEPARTGLOBALS_
  13. #define _SAMPLEPARTGLOBALS_
  14.  
  15. // -- OpenDoc --
  16.  
  17. #ifndef _ODTYPES_
  18. #include <ODTypes.h>
  19. #endif
  20.  
  21. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  22. #include <StdDefs.h>
  23. #endif
  24.  
  25. #ifndef SOM_ODFocusSet_h
  26. #include <FocusSet.h>
  27. #endif
  28.  
  29. #ifndef SOM_ODMenuBar_h
  30. #include <MenuBar.h>
  31. #endif
  32.  
  33. #ifndef _ITEXT_
  34. #include <IText.h>
  35. #endif
  36.  
  37. // -- MacToolbox --
  38.  
  39. #ifndef __TYPES__
  40. #include <Types.h>
  41. #endif
  42.  
  43. //==============================================================================
  44. // Globals
  45. //==============================================================================
  46.  
  47. typedef struct SamplePartGlobals {
  48.     
  49.     ODMenuBar*        fMenuBar;
  50.     ODFocusSet*        fUIFocusSet;    
  51.     Handle            fThumbnail;
  52.                 
  53.     ODTypeToken        fSelectionFocus;
  54.     ODTypeToken        fMenuFocus;
  55.     ODTypeToken        fModalFocus;
  56.     ODTypeToken        fFrameView;
  57.     ODTypeToken        fLargeIconView;
  58.     ODTypeToken        fSmallIconView;
  59.     ODTypeToken        fThumbnailView;
  60.     ODTypeToken        fMainPresentation;
  61.             
  62.     ODScriptCode    fEditorsScript;
  63.     ODLangCode        fEditorsLanguage;
  64.     
  65. } SamplePartGlobals;
  66.  
  67. extern    ODUShort            gGlobalsUsageCount;
  68. extern    SamplePartGlobals*    gGlobals;
  69.  
  70. //==============================================================================
  71. // Prototypes
  72. //==============================================================================
  73.  
  74. SamplePartGlobals*    newGlobals();
  75. void                deleteGlobals(SamplePartGlobals** globals);
  76.  
  77.  
  78. #endif